import { baseRequest } from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/hrms/assets/issue/` + url, ...arg)
export default {
	pageList(data) {
		return request('pageList', data, 'post')
	},
	pageIssueDetail(data) {
		return request('pageIssueDetail', data, 'post')
	},
	addIssue(data) {
		return request('addIssue', data, 'post')
	},
	deliveryIssue(data) {
		return request('deliveryIssue', data, 'post')
	},
	operation(id, status, remark) {
		return request(`operation/${id}?status=${status}&remark=${remark}`, null, 'get')
	},
	getIssueTimeLine(id) {
		return request(`getIssueTimeLine/${id}`, null, 'get')
	}
}
